﻿@model IEnumerable<VOD.Models.Link>

<h1>所有友情链接</h1>
<table>
    <tr class="thead">
        <th>名称</th>
        <th>地址</th>
        <th>添加时间</th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.LinkName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LinkUrl)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AddDate)
        </td>
        <td>
            @Html.ActionLink("修改", "Edit", new { id = item.LinkID }, new { @class="btnLinkEdit"}) |
            @Html.ActionLink("删除", "Delete", new { id = item.LinkID }, new { @class = "btnLinkDelete" })
        </td>
    </tr>
}
</table>
<script type="text/javascript">
    $(function () {
        $(".btnLinkEdit").button();
        $(".btnLinkDelete").button();
    });
</script>
